package com.tdkj.action.backstage.admin;

import com.tdkj.action.BaseAction;
import com.tdkj.model.user.BeanUserExperiences;

public class AdminExperienceAction extends BaseAction {
	private static final long serialVersionUID = 3545069374991460877L;
	private BeanUserExperiences beanUserExperiences;

	public String findExperience() {
		if (this.getBaseService().findByProperty("type", 1,
				BeanUserExperiences.class).size() > 0) {
			beanUserExperiences = this.getBaseService().findByProperty("type",
					1, BeanUserExperiences.class).get(0);
		}
		return "findExperience";
	}

	public String saveExperience() {
        this.getBaseService().saveOrUpdate(beanUserExperiences, BeanUserExperiences.class);
		return findExperience();
	}

	public BeanUserExperiences getBeanUserExperiences() {
		return beanUserExperiences;
	}

	public void setBeanUserExperiences(BeanUserExperiences beanUserExperiences) {
		this.beanUserExperiences = beanUserExperiences;
	}
}
